package com.it.controller;

import com.it.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: CaoYouGen
 * @DateTime: 2023/11/08/12:06
 * @注释: TODO
 **/
@RestController
@RequestMapping("/teacher")
public class TeacherController {

    @Autowired
    private TeacherService teacherService;

    @GetMapping("/add")
    public String add(){
        return teacherService.add();
    }


    @GetMapping("/delete")
    public String delete(){
        return teacherService.delete();
    }

    @GetMapping("/update")
    public String update(){
        return teacherService.update();
    }

    @GetMapping("/query")
    public String query(){
        return teacherService.query();
    }


}
